package com.lmx.project.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lmx.project.model.dto.users.UserCountQueryRequest;
import com.lmx.project.model.dto.users.UsersCountVo;
import com.lmx.project.model.dto.users.UsersQueryRequest;
import com.lmx.project.model.entity.Users;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lmx.project.model.vo.UsersVo;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @author Lenovo
 * @description 针对表【users(用户表)】的数据库操作Service
 * @createDate 2023-04-07 22:36:34
 */
public interface UsersService extends IService<Users> {


    /**
     * 获取提交排行
     */
    public List<UsersCountVo> getUsersCountVo(UserCountQueryRequest countVo);


    /**
     *
     * 获取当前用户信息
     * */
    UsersVo getUserCurrent(HttpServletRequest request);

//    /**
//     * 批量保存数据
//     * */



//    boolean saveUserByExcle(MultipartFile contact) throws IOException;

    /**
     * 获取用户信息列表
     * @param usersQueryRequest
     * @return
     */
    Page<UsersVo> getUserVo(UsersQueryRequest usersQueryRequest);
}
